package com.esun.payment_api.mapper;

import com.esun.payment_api.bean.DkReceiveBean;
import com.esun.payment_api.bean.SumDkReceiveMoneyBean;
import com.esun.payment_api.domain.DkReceive;
import com.esun.payment_api.domain.DkReceiveExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface DkReceiveMapper {

    List<DkReceive> queryList();

    long countByExample(DkReceiveExample example);

    int deleteByExample(DkReceiveExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DkReceive record);

    int insertSelective(DkReceive record);

    List<DkReceive> selectByExample(DkReceiveExample example);

    DkReceive selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DkReceive record, @Param("example") DkReceiveExample example);

    int updateByExample(@Param("record") DkReceive record, @Param("example") DkReceiveExample example);

    int updateByPrimaryKeySelective(DkReceive record);

    int updateByPrimaryKey(DkReceive record);

    List<DkReceiveBean> getUnclaimedList(Short coId, Short deptId, String searchStr, String monthStr, String bankType);

    List<DkReceiveBean> getUnclaimedListSubs(Short userId, Short coId, Short deptId, String searchStr, String bankType);

    Integer claimReceive(Map map);

    //求和：全部到款-已认领总金额、到款总金额
    SumDkReceiveMoneyBean getSumDkReceiveMoney(Short coId, String searchStr, String monthStr, String bankType);
}